﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EmProductCenter
{
    public partial class DESE : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_Submit_Click(object sender, EventArgs e)
        {
            string inputStr = txt_Input.Text;
            if (rbl_Type.SelectedValue == "E")
            {
                txt_Output.Text = LYM.CommonWeb.DecryptEncrypt.DESEncrypt.Encrypt(inputStr);
            }
            else
            {
                txt_Output.Text = LYM.CommonWeb.DecryptEncrypt.DESEncrypt.Decrypt(inputStr);
            }
        }
    }
}